package com.cameron.educms.controller;

import com.cameron.educms.service.CrmBannerService;
import com.cameron.utils.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/edu-cms/banner-front")
@CrossOrigin
public class BannerFrontController {

    @Resource
    private CrmBannerService bannerService;

    @GetMapping
    public Result getAll(){
        return Result.ok().data("list",bannerService.getAll());
    }
}
